const axios = require('axios')
async function getVersion() {
  const canaryres = await axios.get('https://aka.ms/canaryLatest')
  console.log('canary：' + canaryres.data.match(/\b\d{5}\b/g)[0])
  const devres = await axios.get('https://aka.ms/devLatest')
  console.log('dev：' + devres.data.match(/\b\d{5}\.\d{4}\b/g)[0])
  const betares = await axios.get('https://aka.ms/betaLatest')
  console.log('beta：' + betares.data.match(/\b\d{5}\.\d{4}\b/g)[0])
  const releasepreviewres = await axios.get('https://aka.ms/releasepreviewLatest')
  console.log('releasepreview：' + releasepreviewres.data.match(/\b\d{5}\.\d{4}\b/g)[0])
}
getVersion()